package marchsoft.modules.selfFish.pisciculture.service;

import com.baomidou.mybatisplus.extension.service.IService;
import marchsoft.modules.selfFish.pisciculture.entity.Health;
import marchsoft.modules.selfFish.pisciculture.entity.dto.HealthDto;
import marchsoft.response.Result;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Set;

/**
 * @author Lenovo
 * @version 1.0
 * @title HealthService
 * @description
 * @create 2024-07-15 17:24
 */
public interface HealthService extends IService<Health> {

    /**查询
     * @param fishName 名称
     * @param pageNum 当前页
     * @param pageSize 每页数量
     * @return Result<Object>
     * @description 获取健康列表
     */
    Result<Object> getHealthList(String fishName, Long pageNum, Long pageSize);

    /**新增
     * @param healthDto 创建健康对象
     * @return Result<Object>
     * @description 新增健康
     */
    Result<Object> create(HealthDto healthDto);

    /**删除
     * @param ids 删除健康id
     * @return Result<Object>
     * @description 删除健康
     */
    Result<Object> delete(Set<Long> ids);

    /**修改
     * @param healthDto 修改健康对象
     * @return Result<Object>
     * @description 修改健康
     */
    Result<Object> update(HealthDto healthDto);

    /**导出
     * @param fishName 名称
     * @param response 响应
     * @throws IOException 异常
     * @description 导出健康数据
     */
    void download(String fishName, HttpServletResponse response) throws IOException;
}
